.class Llt/noframe/gpsfarmguide/views/ActivityDrawer$2;
.super Landroid/content/BroadcastReceiver;
.source "ActivityDrawer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/views/ActivityDrawer;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/ActivityDrawer;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/ActivityDrawer;)V
    .locals 0

    .line 389
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/ActivityDrawer$2;->this$0:Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    const-string p1, "device"

    .line 393
    invoke-virtual {p2, p1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p1

    check-cast p1, Landroid/hardware/usb/UsbDevice;

    .line 394
    iget-object p2, p0, Llt/noframe/gpsfarmguide/views/ActivityDrawer$2;->this$0:Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    new-instance v0, Landroid/content/Intent;

    invoke-static {p2}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->access$100(Llt/noframe/gpsfarmguide/views/ActivityDrawer;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x0

    invoke-static {p2, v1, v0, v1}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p2

    .line 395
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/ActivityDrawer$2;->this$0:Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    const-string v1, "usb"

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/hardware/usb/UsbManager;

    .line 396
    invoke-virtual {v0, p1, p2}, Landroid/hardware/usb/UsbManager;->requestPermission(Landroid/hardware/usb/UsbDevice;Landroid/app/PendingIntent;)V

    return-void
.end method
